import React, { Component } from 'react'
import CommentItem from './CommentItem'
// 留言内容
export default class CommentFeed extends Component {
  render () {
    const { comments, postId } = this.props;
    // 根据留言条数返回新数组生成多个留言板块
    return comments.map(comment => <CommentItem key={comment._id} comment={comment} postId={postId} />)
  }
}
